/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;

int main_87()
{
    int n;
    scanf("%d",&n);
    printf("*\n");
    for (int i=2;i<=(n-1) ;++i )
    {
        printf("*");
        for (int j=2;j<=(i-1) ;++j )
        {
            printf(" ");
        }
        printf("*\n");
    }
    for (int k=1;k<=n ;++k )
    {
        printf("*");
    }
	return 0;
}
